<?php

session_start();

require_once('config.php');
require_once('inc/html.php');
require_once('util/common.php');

// start output-buffer and collect the contents output.
ob_start();
require_once('controller.php');
$content = ob_get_clean();

/* HEADER AND TEMPLATE START */
echo head(PROJECT_NAME);

echo $content;

/* FOOT AND TEMPLATE END */
echo foot();

// ignore errors while closing connection
@mysql_close();
?>